﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NetCommander
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        FileLister currentList = null;
        FileLister otherList = null;

        private void copyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (currentList != null && otherList != null)
            {
                currentList.CopyTo(otherList.CurrentPath);
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            
        }

        private void fileLister1_Enter(object sender, EventArgs e)
        {
            currentList = sender as FileLister;
        }

        private void fileLister1_Leave(object sender, EventArgs e)
        {
            otherList = sender as FileLister;
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void fileLister1_Load(object sender, EventArgs e)
        {

        }
    }
}
